792b1ec5d816c76abd5ecf18a78f07bbb27e608a,zk/src/org/zkoss/zk/fn/ZkFns.java,ZkFns,outContentType,#Page#,453

Before Change


	public static final String outContentType(Page page) {
		final String contentType = ((PageCtrl)page).getContentType();
		return contentType != null ? contentType:
			page.getDesktop().getDevice().getContentType();
	}
	/** Returns the doc type, or null if not available.
	 * It is null or <!DOCTYPE ...>.

After Change


	public static final String outContentType(Page page) {
		String contentType = ((PageCtrl)page).getContentType();
		if (contentType == null) {
			contentType = page.getDesktop().getDevice().getContentType();
			if (contentType == null) contentType = "";
		}

		final int j = contentType.indexOf(';');
		if (j < 0) {
			final String cs = page.getDesktop().getWebApp()
				.getConfiguration().getResponseCharset();